From a862910f3a4f3e95d0e637217bebcd0484dedce2 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 19 May 2005 01:39:03 +0000 Subject: [PATCH] Warn if source not WGS 84. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1172 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/ozi.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gpsbabel/ozi.c b/gpsbabel/ozi.c index d9471e5cd..39b6e45bb 100644 --- a/gpsbabel/ozi.c +++ b/gpsbabel/ozi.c @@ -4,7 +4,7 @@ As described in OziExplorer Help File - Copyright (C) 2002 Robert Lipe, robertlipe@usa.net + Copyright (C) 2002-2005 Robert Lipe, robertlipe@usa.net This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -548,6 +548,13 @@ data_read(void) ozi_objective = wptdata; } } + + if (linecount == 2) { + if (case_ignore_strncmp(buff, "WGS 84", 6)) { + warning(MYNAME "Only supports reading WGS 84 datum, not '%s'\n", buff); + } + } + if ((strlen(buff)) && (strstr(buff, ",") != NULL)) { wpt_tmp = waypt_new(); -- 2.30.2